package com.probox.common.core.enums;
/**
 * 常用的状态
 *
 *
 * @date 2021-05-27
 */
public enum ApplymentState {
    uncommittedSubmit("0","未创建授权单"),
    submitSubmit("1","已创建授权单"),
    applymentStateEditting("APPLYMENT_STATE_EDITTING","编辑中"),
    applymentStateAuditing("APPLYMENT_STATE_AUDITING","审核中"),
    applymentStateRejected("APPLYMENT_STATE_REJECTED","已驳回"),
    applymentStateToBeConfirmed("APPLYMENT_STATE_TO_BE_CONFIRMED","待账户验证"),
    applymentStateToBeSigned("APPLYMENT_STATE_TO_BE_SIGNED","待签约"),
    applymentStateSigning("APPLYMENT_STATE_SIGNING","开通权限中"),
    applymentStateFinished("APPLYMENT_STATE_FINISHED","已完成"),
    applymentStateCanceled("APPLYMENT_STATE_CANCELED","已作废");

    private ApplymentState(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(ApplymentState oe: ApplymentState.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
